home *** CD-ROM | disk | FTP | other *** search
/ PC Users 1998 January / Cd Pc Users extra 16 enero 1999.iso / prog / inst / tileform / form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-01-27  |  1.3 KB  |  50 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   4305
  5.    ClientLeft      =   1140
  6.    ClientTop       =   1515
  7.    ClientWidth     =   6510
  8.    Height          =   4710
  9.    Left            =   1080
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4305
  12.    ScaleWidth      =   6510
  13.    Top             =   1170
  14.    Width           =   6630
  15.    Begin VB.PictureBox Picture1 
  16.       AutoSize        =   -1  'True
  17.       BorderStyle     =   0  'None
  18.       Height          =   780
  19.       Left            =   240
  20.       Picture         =   "Form1.frx":0000
  21.       ScaleHeight     =   780
  22.       ScaleWidth      =   960
  23.       TabIndex        =   0
  24.       Top             =   240
  25.       Visible         =   0   'False
  26.       Width           =   960
  27.    End
  28. Attribute VB_Name = "Form1"
  29. Attribute VB_Creatable = False
  30. Attribute VB_Exposed = False
  31. Option Explicit
  32. Private Sub Form_Paint()
  33. Dim wid As Single
  34. Dim hgt As Single
  35. Dim x As Single
  36. Dim y As Single
  37.     wid = Picture1.ScaleWidth
  38.     hgt = Picture1.ScaleHeight
  39.     y = 0
  40.     Do While y < ScaleHeight
  41.         x = 0
  42.         Do While x < ScaleWidth
  43.             PaintPicture Picture1.Picture, _
  44.                 x, y, wid, hgt
  45.             x = x + wid
  46.         Loop
  47.         y = y + hgt
  48.     Loop
  49. End Sub
  50.